package xyxy.ymh;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;

public class WebAutoConfiguration {
    @Bean
    @YmhConditionalClass("org.apache.startup.Tomcat")
    public TomcatWebServer getTomcatServer(){
        return new TomcatWebServer();
    }
    @Bean
    @YmhConditionalClass("org.eclipse.jetty.server.Server")
    public JettyWebServer getJettyWebServer(){
        return new JettyWebServer();
    }
}
